/**
 *
 * 【分销】总权限
 *
 * 数据统计
 * 账户与结算
 * 短剧推广
 * 订单管理
 * */
import Layout from '@/layout/index.vue'

export const routerDistribution = [
  {
    name: 'Statistics',
    path: '/statistics',
    hidden: false,
    redirect: 'noRedirect',
    component: 'Layout',
    alwaysShow: true,
    meta: { title: '数据统计', icon: 'chart', noCache: false, link: null },
    children: [
      {
        name: 'OrderedList',
        path: 'ordered/list',
        hidden: false,
        component: 'statistics/ordered/list',
        meta: { title: '订单统计', icon: 'chart', noCache: true, link: null }
      },
      {
        name: 'VideoedList',
        path: 'videoed/list',
        hidden: false,
        component: 'statistics/videoed/list',
        meta: { title: '短剧统计', icon: 'chart', noCache: true, link: null }
      },
      {
        name: 'ChanneledList',
        path: 'channeled/list',
        hidden: false,
        component: 'statistics/channeled/list',
        meta: { title: '渠道统计', icon: 'chart', noCache: true, link: null }
      },
      {
        name: 'UseredList',
        path: 'usered/list',
        hidden: false,
        component: 'statistics/usered/list',
        meta: { title: '用户统计', icon: 'chart', noCache: true, link: null }
      },
      {
        name: 'ThroweredList',
        path: 'throwered/list',
        hidden: false,
        component: 'statistics/throwered/list',
        meta: { title: '投手充值', icon: 'chart', noCache: true, link: null }
      }
    ]
  },
  {
    name: 'Settlement',
    path: '/settlement',
    hidden: false,
    redirect: 'noRedirect',
    component: 'Layout',
    alwaysShow: true,
    meta: { title: '账户与结算', icon: 'menu-user', noCache: false, link: null },
    children: [
      {
        name: 'ThrowerList',
        path: 'thrower/list',
        hidden: false,
        component: 'settlement/thrower/list',
        meta: { title: '投手账户', icon: 'menu-user', noCache: true, link: null }
      },
      {
        name: 'SettleList',
        path: 'settle/list',
        hidden: false,
        component: 'settlement/settle/list',
        meta: { title: '结算单', icon: 'menu-user', noCache: true, link: null }
      }
    ]
  },
  {
    name: 'Config',
    path: '/config',
    hidden: false,
    redirect: 'noRedirect',
    component: 'Layout',
    alwaysShow: true,
    meta: { title: '短剧推广', icon: 'menu-config', noCache: false, link: null },
    children: [
      {
        name: 'LibraryList',
        path: 'library/list',
        hidden: false,
        component: 'config/library/list',
        meta: { title: '短剧中心', icon: 'menu-config', noCache: true, link: null }
      },
      {
        name: 'LibraryAdd',
        path: 'library/add',
        hidden: true,
        component: 'config/library/add',
        meta: { title: '添加短剧库', icon: 'menu-config', noCache: true, link: null }
      },
      {
        name: 'LibraryDetail',
        path: 'library/detail',
        hidden: true,
        component: 'config/library/detail',
        meta: { title: '剧集库', icon: 'menu-config', noCache: true, link: null }
      },
      {
        name: 'template ',
        path: 'template/list',
        hidden: false,
        component: 'config/template/list',
        meta: { title: '充值配置', icon: 'menu-config', noCache: true, link: null }
      },
      {
        name: 'ChannelPostBackList',
        path: 'channelPostBack/list',
        hidden: false,
        component: 'config/channelPostBack/list',
        meta: { title: '回传配置', icon: 'menu-config', noCache: true, link: null }
      },
      {
        name: 'ChannelPostBackAdd ',
        path: 'channelPostBack/add',
        hidden: true,
        component: 'config/channelPostBack/add',
        meta: { title: '添加回传配置', icon: 'menu-config', noCache: false, link: null }
      },
      {
        name: 'ChannelDataList',
        path: 'channelData/list',
        hidden: false,
        component: 'config/channelData/list',
        meta: { title: '渠道列表', icon: 'menu-config', noCache: true, link: null }
      },
      {
        name: 'ChannelDataAdd',
        path: 'channelData/add',
        hidden: true,
        component: 'config/channelData/add',
        meta: { title: '添加渠道', icon: 'menu-config', noCache: false, link: null }
      }
    ]
  },
  {
    name: 'Order',
    path: '/order',
    hidden: false,
    redirect: 'noRedirect',
    component: 'Layout',
    alwaysShow: true,
    meta: { title: '订单管理', icon: 'menu-order', noCache: false, link: null },
    children: [
      {
        name: 'OrderDataCoinList',
        path: 'orderDataCoin/list',
        hidden: false,
        component: 'order/orderDataCoin/list',
        meta: { title: '金币订单', icon: 'menu-order', noCache: true, link: null }
      },
      {
        name: 'OrderDataVipList',
        path: 'orderDataVip/list',
        hidden: false,
        component: 'order/orderDataVip/list',
        meta: { title: '会员订单', icon: 'menu-order', noCache: true, link: null }
      },
      {
        name: 'OrderRefundList',
        path: 'orderRefund/list',
        hidden: false,
        component: 'order/orderRefund/list',
        meta: { title: '退款列表', icon: 'menu-order', noCache: true, link: null }
      }
    ]
  }
]
